package com.Interfaec;

public class CarTest {
    public static void main(String[] args) {
        AutomobileBrand benz = new AutomobileBrand();
        benz.setBrand("奔驰");
        benz.setColor("黑色");
        benz.atmosphere();

        AutomobileBrand porsche = new AutomobileBrand();
        porsche.setBrand("保时捷");
        porsche.setColor("白色");
        porsche.start();

        AutomobileBrandInterface car1 = new AutomobileBrandImpl();
        car1.open(benz);
        AutomobileBrandInterface car2 = new AutomobileBrandImpl();
        car2.open(porsche);
    }
}
